import request from '@/utils/request'

// 神椰打卡券码明细列表
export function shenyeCouponList(query) {
  return request({
    url: '/shenye/customer/coupon/coupon/detail/list',
    method: 'post',
    data: query
  })
}
// 核销店铺列表（查询条件）
export function shopList(query) {
    return request({
      url: '/shenye/customer/coupon/shop/query/list',
      method: 'get',
      params: query
    })
  }
// 核销券码
export function verificationCoupon(data) {
  return request({
    url: '/shenye/customer/coupon/coupon/verification',
    method: 'post',
    data
  })
}
// 核销券码店铺列表
export function verificationShopList(query) {
    return request({
      url: '/shenye/customer/coupon/verification/shop/list',
      method: 'post',
      data: query
    })
  }
// 编辑神椰店铺
export function updateShenyeShop(data) {
  return request({
    url: '/shenye/shop',
    method: 'put',
    data: data
  })
}
// 编辑神椰店铺状态[启用-停用]
export function editShopStatus(params) {
  return request({
    url: '/shenye/shop/status',
    method: 'put',
    params
  })
}
// 查询行业下拉框
export function shopIndustrySelect(params) {
  return request({
    url: '/shenye/shop/industry/select',
    method: 'get',
    params
  })
}
// 商家二维码
export function shenyeShopQrcode(id) {
  return request({
    url: '/shenye/shop/qrcode/' + id,
    method: 'get',
  })
}
